﻿package 
{
    import com.assist.server.*;
    import flash.display.*;

    public class GetActivityButton extends Object
    {

        public function GetActivityButton()
        {
            return;
        }// end function

        public static function getActivityButton(param1:String) : MovieClip
        {
            var _loc_2:MovieClip = null;
            switch(param1)
            {
                case TownType.MultiMission:
                {
                    _loc_2 = new MultiMissionActivity();
                    break;
                }
                case TownType.DailyQuest:
                {
                    _loc_2 = new DailyQuestActivity();
                    break;
                }
                case TownType.Sport:
                {
                    _loc_2 = new SportActivity();
                    break;
                }
                case TownType.PreventIndulge:
                {
                    _loc_2 = new PreventIndulgeActivity();
                    break;
                }
                case TownType.OnlineGift:
                {
                    _loc_2 = new OnlineGiftActivity();
                    break;
                }
                case TownType.SendIngot:
                {
                    _loc_2 = new SendIngotActivity();
                    break;
                }
                case TownType.All:
                {
                    _loc_2 = new AllActivity();
                    break;
                }
                case TownType.CampSalary:
                {
                    _loc_2 = new CampSalaryActivity();
                    break;
                }
                case ActivityType.Gift1:
                {
                    _loc_2 = new SendIngotActivity();
                    break;
                }
                case ActivityType.Gift2:
                case ActivityType.Gift3:
                case ActivityType.Gift12:
                case ActivityType.Gift13:
                case ActivityType.Gift14:
                case ActivityType.Gift15:
                case ActivityType.Gift16:
                case ActivityType.Gift17:
                case ActivityType.Gift18:
                case ActivityType.Gift19:
                case ActivityType.Gift20:
                {
                    _loc_2 = new GiftType2Activity();
                    break;
                }
                case ActivityType.Gift4:
                {
                    _loc_2 = new GiftType4Activity();
                    break;
                }
                case ActivityType.Gift5:
                {
                    _loc_2 = new MCFactionWarGift2();
                    break;
                }
                case ActivityType.Gift6:
                case ActivityType.Gift7:
                case ActivityType.Gift8:
                case ActivityType.Gift9:
                {
                    _loc_2 = new MCFactionAnimal();
                    break;
                }
                case ActivityType.Gift10:
                {
                    _loc_2 = new WorldBossActivity();
                    break;
                }
                case ActivityType.Gift11:
                {
                    _loc_2 = new MCVIPGift();
                    break;
                }
                case ActivityType.FactionWarSee:
                case ActivityType.FactionWarSignUp:
                case ActivityType.FactionWarInto:
                {
                    _loc_2 = new MCFactionWar();
                    break;
                }
                case ActivityType.FactionWarGift:
                {
                    _loc_2 = new MCFactionWarGift();
                    break;
                }
                case FunctionType.Rune:
                {
                    _loc_2 = new RuneActivity();
                    break;
                }
                case FunctionType.SuperSport:
                {
                    _loc_2 = new SuperSportActivity();
                    break;
                }
                case FunctionType.TakeBible:
                {
                    _loc_2 = new TakeBibleActivity();
                    break;
                }
                case ActivityType.FactionAll:
                {
                    _loc_2 = new FactionAllActivity();
                    break;
                }
                case FunctionType.Tower:
                {
                    _loc_2 = new MCTower();
                    break;
                }
                case ActivityType.ServerWar:
                {
                    _loc_2 = new MCServerWar();
                    break;
                }
                case FunctionType.RollCake:
                {
                    _loc_2 = new RollCakeActivity();
                    break;
                }
                case FunctionType.WorshipMars:
                {
                    _loc_2 = new WorshipMarsActivity();
                    break;
                }
                case FunctionType.GetPeach:
                {
                    _loc_2 = new GetPeachActivity();
                    break;
                }
                case ActivityType.RedEnvelopes:
                {
                    _loc_2 = new RedEnvelopesActivity();
                    break;
                }
                case FunctionType.Zodiac:
                {
                    _loc_2 = new ZodiacActivity();
                    break;
                }
                case FunctionType.SealSoul:
                {
                    _loc_2 = new SealStoneActivity();
                    break;
                }
                case FunctionType.StudyStunt:
                {
                    _loc_2 = new StudyStuntActivity();
                    break;
                }
                case FunctionType.PetAnimal:
                {
                    _loc_2 = new PetAnimal();
                    break;
                }
                case ActivityType.ActivityFunction:
                {
                    _loc_2 = new ActivityFunctionActivity();
                    break;
                }
                case FunctionType.Farm:
                {
                    _loc_2 = new FarmActivity();
                    break;
                }
                case FunctionType.HeroMission:
                {
                    _loc_2 = new HeroMissionActivity();
                    break;
                }
                case ActivityType.ActivityAward:
                {
                    _loc_2 = new ActivityAwardActivity();
                    break;
                }
                case ActivityType.GameHelper:
                {
                    _loc_2 = new GameHelpActivity();
                    break;
                }
                case FunctionType.SendFlower:
                {
                    _loc_2 = new FlowerRankingActivity();
                    break;
                }
                case ActivityType.WorldFactionWar:
                {
                    _loc_2 = new WorldFactionWar();
                    break;
                }
                case FunctionType.DreamSection:
                {
                    _loc_2 = new DreamSectionActivity();
                    break;
                }
                case FunctionType.HaloRole:
                {
                    _loc_2 = new HaloRoleActivity();
                    break;
                }
                case FunctionType.CatHunt:
                {
                    _loc_2 = new CatHuntActivity();
                    break;
                }
                case FunctionType.Furnace:
                {
                    _loc_2 = new FurnaceActivity();
                    break;
                }
                case ActivityType.WorldFactionWar:
                {
                    _loc_2 = new WorldFactionWar();
                    break;
                }
                case ActivityType.FameRank:
                {
                    _loc_2 = new FameRank();
                    break;
                }
                case ActivityType.MissionRank:
                {
                    _loc_2 = new MissionRank();
                    break;
                }
                case ActivityType.StatePointRank:
                {
                    _loc_2 = new StatePointRank();
                    break;
                }
                case ActivityType.CoinRank:
                {
                    _loc_2 = new CoinRank();
                    break;
                }
                case ActivityType.NineRegions:
                {
                    _loc_2 = new NineRegionsActivity();
                    break;
                }
                case ActivityType.ActivityDuanWu:
                {
                    _loc_2 = new ActivityDuanWuBtn();
                    break;
                }
                case FunctionType.SpecialPartner:
                {
                    _loc_2 = new SpecialPartnerActivity();
                    break;
                }
                case FunctionType.FindImmortal:
                {
                    _loc_2 = new FindImmortalActivity();
                    break;
                }
                case ActivityType.TopWar:
                {
                    _loc_2 = new TopWarActivity();
                    break;
                }
                default:
                {
                    _loc_2 = new MCNone();
                    break;
                    break;
                }
            }
            return _loc_2;
        }// end function

    }
}
